package com.equipment.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 故障信息
 *
 * @author 杨凯
 * @create 2018-04-02 10:33
 **/
@TableName("fault_info")
public class FaultInfo extends Model<FaultInfo>{
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@TableId(type=IdType.AUTO)
	private int id;
	/**
	 * 机器编码
	 */
	private String machineCode;
	/**
	 * 故障类型
	 */
	private String faultType;
	/**
	 * 故障内容
	 */
	private String faultMessage;
	/**
	 * 故障时间
	 */
	private Timestamp faultTime;


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMachineCode() {
		return machineCode;
	}

	public void setMachineCode(String machineCode) {
		this.machineCode = machineCode;
	}

	public String getFaultType() {
		return faultType;
	}

	public void setFaultType(String faultType) {
		this.faultType = faultType;
	}

	public String getFaultMessage() {
		return faultMessage;
	}

	public void setFaultMessage(String faultMessage) {
		this.faultMessage = faultMessage;
	}

	public Timestamp getFaultTime() {
		return faultTime;
	}

	public void setFaultTime(Timestamp faultTime) {
		this.faultTime = faultTime;
	}

	@Override
	public String toString() {
		return "FaultInfo{" +
				"id=" + id +
				", machineCode='" + machineCode + '\'' +
				", faultType='" + faultType + '\'' +
				", faultMessage='" + faultMessage + '\'' +
				", faultTime=" + faultTime +
				'}';
	}
}
